package com.example.supplychainbackend.mapper;

import com.example.supplychainbackend.controller.dto.design.BOMDto;
import com.example.supplychainbackend.controller.dto.design.ECNDto;
import com.example.supplychainbackend.controller.dto.warehouse.*;
import com.example.supplychainbackend.entity.design.BOMEntity;
import com.example.supplychainbackend.entity.design.ECNEntity;
import com.example.supplychainbackend.entity.warehouse.*;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring",
        builder = @Builder(disableBuilder = true))
public interface DesignMapper {

    BOMDto toBOMDto(BOMEntity entity);
    ECNDto toECNDto(ECNEntity entity);

    BOMEntity toBOMEntity(BOMDto dto);
    ECNEntity toECNEntity(ECNDto dto);

    List<BOMDto> toBOMDtoList(List<BOMEntity> entity);
    List<ECNDto> toECNDtoList(List<ECNEntity> entity);



}
